<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap.min.css"/>" />
	<link href="/resources/lib/font-awesome-4.4.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css" />
<link href="/resources/css/header.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<c:url value="/resources/css/common.css"/>" />
<link rel="stylesheet"
	href="<c:url value="/resources/css/project/createProject.css"/>" />
<script src="<c:url value="/resources/lib/jquery-2.1.4.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/bootstrap-3.3.5/js/bootstrap.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/angular-1.4.7/angular.min.js"/>"
	type="text/javascript">
	
</script>
<script src="<c:url value="/resources/js/project/createProject.js" />"
	type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project</title>
</head>
<body ng-app="conversionTool">
<ng-include src="'/resources/viewPart/nav.html'" >
	
	</ng-include>
	<header>
	<div class="head-line">
		<h3 class="head-title" >Create A Project</h3>
		</div>
	</header>
	<section class="container" ng-controller="projectCtrl">
		<form role="form" method="post" action="/project/saveProject" class="form-horizontal text-center">

			<input type="hidden" name="id" value="${project.id }"/>

		
				<div class="form-group text-center form-line">
				<div class="col-xs-4 text-right">
					<label for="projectName">Project Name</label> 
					</div>
					<div class="col-xs-8">
					<input type="text"
						class="form-control" id="projectName" name="projectName"
						ng-model="project.projectName"
						ng-init="project.projectName='${project.projectName} '"
						placeholder="please enter project name" />
						</div>
				</div>

				<div class="form-group text-center form-line">
				<div class="col-xs-4 text-right">
					<label for="description">Description</label>
					</div>
					<div class="col-xs-8">
					<textarea id="description" class="form-control"
					name="description"
					ng-init="project.description='${project.description}'"
						ng-model="project.description"></textarea>
				</div>
				</div>


				<div class="form-group text-center form-line">
				<div class="col-xs-4"></div>
				<div class="col-xs-8 text-right">
					<input type="submit" value="Save" class="btn btn-primary"
						ng-click="save()" />
				</div>
				</div>


				<div class="col-md-12 text-center form-group">{{msg}}</div>
			</div>
		</form>
	</section>


</body>
</html>